<?php
# This is not a valid entry point to MediaWiki.
if( !defined( 'MEDIAWIKI' ) ) {
	echo <<<EOT
To install screenplay, put the following line in LocalSettings.php:
require_once( "\$IP/extensions/screenplay/screenplay.php" );
EOT;
	exit( 1 );
}

# Load the internationalization data.
#wfLoadExtensionMessages( 'screenplay' );
		
# Take credit for this extension.
$wgExtensionCredits['variable'][] = array(
	'name' => 'screenplay',
	'author' => 'Steven MountJoy (steven.mountjoy@indoorsdog.com)',
	'url' => 'www.indoorsdog.com',
	'description' => 'description',
	'version' => '1.0.0'
);

$extDir = dirname( __FILE__ ) . '/';

# Register our internationalization file.
$wgExtensionMessagesFiles['screenplay'] = $extDir . 'screenplay.i18n.php';

# Register the extension's main code/class.
$wgAutoloadClasses['screenplay'] = $extDir . 'screenplay.body.php';

# Let MediaWiki know about the new tag.
$wgHooks['ParserFirstCallInit'][] = 'screenplay::init';
?>